package cn.wen.dao;import cn.wen.entity.Collect;import cn.wen.entity.Discuss;import cn.wen.entity.Subject;import org.apache.ibatis.annotations.Mapper;import org.apache.ibatis.annotations.Param;import org.springframework.stereotype.Component;import java.util.*;@Mapper@Componentpublic interface CollectDao {    /**     * 通过userId获取列表     */    List<Subject> subjectCollectByUserId(@Param("userId") Long userId);    /**     * 通过userId获取列表     */    List<Discuss> discussCollectByUserId(@Param("userId") Long userId);    boolean deleteByDiscussLikeId(@Param("discussId") Long discussId, @Param("userId") Long userId);    boolean insertByDiscussLikeId(@Param("discussId") Long discussId, @Param("userId") Long userId);}